package actor.controller
{
	import capricornus.actor.Actor;
	import capricornus.actor.controller.ActorMoveController;
	
	public class DemonMoveController extends ActorMoveController
	{
		public function DemonMoveController(actor:Actor)
		{
			super(actor);
			init();
		}
		
		private function init():void
		{
			
		}
		
		override public function destroy():void
		{
			super.destroy();
			super.removeEventAndSendStop();
		}
		
		override protected function nextNode():Array
		{
			_currentNodeIndex++;
			if( _currentNodeIndex < _arrPath.length )
			{
				return _arrPath[_currentNodeIndex];
			}
			_currentNodeIndex = 2;
			return _arrPath[_currentNodeIndex];
		}
		
		override public function removeEventAndSendStop():void
		{
		}
		
		override protected function move( time:uint ):void
		{
			super.move( time );
		}
	}
}